[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+-----+####################################################################
#+-| DIR |--------------------------------------------------+#################
#| +-----+ The DIR command displays the specified directory |#################
#+----------------------------------------------------------+#################
##############################################################################
##############################################################################
#+--| Syntax |-----------+####################################################
#| DIR [<C-exp>] |####################################################
#+-----------------------+####################################################
##############################################################################
##############################################################################
#######+---| Description |-------------------------------------------+########
#######| If <C-exp> is not specified, then DIR looks for all files |########
#######| with the extension .dbf. This has the same effect as |########
#######| issuing the command: |########
#######| |########
#######| DIR "*.dbf" |########
#######| |########
#######| If database files are specified, then the number of records |########
#######| in the database and the date of the last update are also |########
#######| displayed. The DIR command output is routed through the |########
#######| same I/O system as the ? command. The message "Press |########
#######| spacebar to continue" appears after one screen of data has |########
#######| been displayed. |########
#######+-------------------------------------------------------------+########
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| * List all database files to the screen. |#########
#########| |#########
#########| DIR |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 2 |-------------------------------------------+#########
#########| * List all files and duplicate the screen |#########
#########| * output to an alternate file. |#########
#########| |#########
#########| SET ALTERNATE TO "dir.txt" |#########
#########| SET ALTERNATE ON |#########
#########| DIR '*.*' |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 3 |-------------------------------------------+#########
#########| * Prompt user for a list of files to display. |#########
#########| |#########
#########| ACCEPT "Files: " TO file_list |#########
#########| DIR file_list |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
RUN
TYPE
find_first()
find_next()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson